<?php
	include '../com/mss/action/DrugAction.php';
	
	$drug_action = new DrugAction();
	$drugs = $drug_action->selectAll();
	
	echo "<h4>Drug Information</h4>";
	$html = "&lt;table id=\"customers\" border=\\\"1\\\"&gt;";
	$html = htmlspecialchars_decode(strip_tags(stripslashes(stripslashes( $html ))));
	echo $html;
	echo "<th>Name</th><th>Serial</th><th>Unit</th><th>Description</th>";
	foreach ($drugs as $drug) {
		echo "<tr>";
		echo "<td>" . $drug->getName() . "</td>";
		echo "<td>" . $drug->getSerial() . "</td>";
		echo "<td>" . $drug->getUnit() . "</td>";
		echo "<td>" . $drug->getDescription() . "</td>";
		echo "</tr>";
	}
	echo "</table>";
?>